<?php
include_once(dirname(__FILE__) . "/../libs/nms_getdeviceinfor.php");
$id = db_fetch_assoc('SELECT id,hostname,snmp_community FROM host WHERE status != 1');
$tstart = date('h:i:s');
$count =0;
foreach($id as $item){
	getdevice($item['id'],$item['hostname'],$item['snmp_community']);
	$count++;
}
$tend = date('h:i:s');
cacti_log('Time get '.$count.' devices information start: '.$tstart.' end: '.$tend.' ',false,'NMS');
?>